.cagetroies {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  user-select: none;
  .itemWrap{
    width: 50%;
    position: relative;
    cursor: pointer;
  }
}
.category {
  transition: transform 250ms ease;
  width: 50%;
  height: 100%;
  .target {
    border: 1px dashed #a5b3f7;
    width: 120px;
    margin-bottom: 4px;  
    padding: 8px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    appearance: none;
    outline: none;
    background-color: #e3eefb;
    transition: box-shadow 300ms ease;
    font-size: 12px;
    cursor: grab;
  }
  &.isOverLayer{
    .target{
      background-color: #4c9ffe;
      color: #fff;
      border: none;
      cursor: grabbing;
    }
  }

  &.dragging {
    z-index: 1;
    transition: none;

    * {
      cursor: grabbing;
    }

    .target {
      --scale: 1.06;
      --box-shadow: -1px 0 15px 0 rgba(34, 33, 81, 0.01),
        0px 15px 15px 0 rgba(34, 33, 81, 0.25);
      

      &:focus-visible {
        --box-shadow: 0 0px 10px 2px #4c9ffe;
      }
    }
  }

  &.dragging {
    opacity: 0.5;

    button {
      animation: pop 250ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
    }
  }
}

@keyframes pulse {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0)
      scale(1);
  }
  100% {
    transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0)
      scale(var(--scale));
    box-shadow: var(--box-shadow);
  }
}
